package org.example.j2025_3_3.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
public class Result<T> {
    private int code ;
    private T data ;
    private String errMsg ;
    public static <T> Result<T> success(T data){
        Result<T> result = new Result();
        result.setCode(200);
        result.setData(data);
        return result ;
    }
}
